package User;

import BOOK.BookList;
import Operation.*;

import java.util.Scanner;

/**
 * Creat with IntelliJ IDEA
 * Description:读者 - 子类
 * User:WZW
 * Date:2021-11-27
 * Time:18:38
 */
public class Reader extends User{
    public Reader(String name) {
        super(name);
        super.iOperations = new IOperation[]{
                new Exit(),
                new Search(),
                new Borrow(),
                new Return(),
        };
    }

    @Override
    public int menu() {
        System.out.println("=====读者菜单=====");
        System.out.println("1.查找图书");
        System.out.println("2.借阅图书");
        System.out.println("3.归还图书");
        System.out.println("0.退出系统");
        System.out.println("=================");
        System.out.println("请选择：>");
        Scanner scanner = new Scanner(System.in);
        int chioce = scanner.nextInt();
        return chioce;
    }
}
